package com.wj.taobaoke;

public class GuanJianZi {
	
	public final String guanJianZi;
	public final String blogFolderPath;
	public final String guanJianZiBlogUrl;
	public final String guanJianZiGoodsUrl;
	public final String baiduNewsUrl;
	
	public GuanJianZi(String guanJianZi, String blogFolderPath, 
			String guanJianZiBlogUrl, String guanJianZiGoodsUrl,
			String baiduNewsUrl){
		this.guanJianZi = guanJianZi;
		this.blogFolderPath= blogFolderPath;
		this.guanJianZiBlogUrl = guanJianZiBlogUrl;
		this.guanJianZiGoodsUrl = guanJianZiGoodsUrl;
		this.baiduNewsUrl = baiduNewsUrl;
	}
	
	private String blogFilePath = null;
	private String guanJianZiNav = null;
	public GuanJianZi init(String projectPath){
		blogFilePath = projectPath + blogFolderPath;
		guanJianZiNav = "<a href=\""+guanJianZiBlogUrl+"index.html\">"+guanJianZi + "</a> &gt; ";
		return this;
	}
	
	public String getBlogFilePath() {
		return blogFilePath;
	}
	
	public String getGuanJianZiNav(){
		return guanJianZiNav;
	}
}
